package runze.shiro.dao;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import runze.shiro.domain.User;

/**
 * @author wrzhxy@qq.com
 * @date 2017年12月28日
 */
@Repository
public interface UserDao extends CrudRepository<User, Integer> {
	User findByUsernameAndPassword(String username, String password);
	User findOneByUsername(String username);
	User findByUsername(String username);
}
